Skip to content

Refactored url-related activities in the Googl::Url class#9

Open
dfucci wants to merge 3 commits into
zigotto:masterfrom
dfucci:master
Open

Refactored url-related activities in the Googl::Url class#9
dfucci wants to merge 3 commits into
zigotto:masterfrom
dfucci:master

Conversation

@dfucci

@dfucci dfucci commented Dec 3, 2014

Copy link
Copy Markdown

Hi,
I noticed that Googl.expand/shorten deal with checking whether a url is valid or not. I think that's a code smell that might violate the single responsibility principle.
I have refactored the validity check of the string representing the url in the Url class. So far it does only that but later could contain other url-related responsibilities.

@johnnyshields

Copy link
Copy Markdown
Contributor

👍

Comment thread spec/googl/expand_spec.rb

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the test is commented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants